AddRuleRequest

data class AddRuleRequest(styleSheetId: StyleSheetId, ruleText: String, location: SourceRange)

Represents request frame that can be used with CSS#addRule operation call.

Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

See also

Constructors

AddRuleRequest
Link copied to clipboard
fun AddRuleRequest(styleSheetId: StyleSheetId, ruleText: String, location: SourceRange)

Properties

location
Link copied to clipboard
val location: SourceRange
Text position of a new rule in the target style sheet.
ruleText
Link copied to clipboard
val ruleText: String
The text of a new rule.
styleSheetId
Link copied to clipboard
val styleSheetId: StyleSheetId
The css style sheet identifier where a new rule should be inserted.

Sources

jvm source
Link copied to clipboard